/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Author: Luke Manrodt
Brief: Register PODs to save to an XML file
Created: 9/9/2011
History:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#pragma once
#include "Precompiled.hpp"
 
enum E_POD_TYPE
{
  EPT_VOID,
  EPT_INT,
  EPT_UINT,
  EPT_NUMBER
};

struct XMLData
{
  std::string componentName;

  E_POD_TYPE type;
  void* pod;
};


struct ComponentSyncObj
{
  Handle<Entity> entity;
  std::vector<XMLData> podArray;
};

class Entity;

namespace Serializer
{  
  void RegisterInt(Handle<Entity> parent, std::string componentName, std::string podName, int* pod);

  void SaveAll(void);
};
